{{define "content"}}

    <div id="main">
        
        <!-- 面包屑导航 -->
        <div id="bread" class="box list sky-blue">
            <span class="left">
               <a href="/">{{.Gobbs.title}}</a>
                <img src="/images/divider.gif" />
                主题操作
            </span>

        </div>
<form method="post" name="form1" action="?action=do&act={*$act*}">
	
        <!-- 论坛帖子列表 -->
        <div class="list">
            <h1 class="block_sub">主题列表</h1>
            <div class="list_table mainbox">
                <table>
                    <thead>
                        <tr>
                            <td class="folder">ID</td>
                            <th class="subject">主题</th>
                            <th class="block">板块</th>
                            <td class="author">作者</td>
                            <td class="nums">阅读/跟帖</td>
                            <td class="lastpost">最后发表</td>
                        </tr>
                    </thead>
					{* foreach from=$aThread  key = key item=item *}
                    <tbody>
                        <tr onmouseover="hover(this);" onmouseout="out(this);">
                            <td class="folder"><input type="checkbox" name="checkId[]" value="{*$item->tid*}" checked/></td>
                            <th class="subject"><h2>{*if $item->icon*}<span class="icon"><img src="/images/icon/{*$item->icon*}" border="0" alt=""></span>{*/if*}<a title="{*$item->subject*}" href="read.php?tid={*$item->tid*}" >{*$item->subject*}</a> <span class="red">{*if $item->displayorder neq $item->createtime *}{* $item->displayorder|date_format:"%Y-%m-%d %H:%M" *}({* $item->uphours *}){*/if*}</span></h2></th>
                            <td class="block"><a href="#">{*$item->forumname*}</a></td>
                            <td class="author">
                                {*if $item->isanonymous neq 'Y'*}<a href="#">{*$item->username*}</a>{*else*}匿名{*/if*}
                                <em class="time">{* $item->createtime|date_format:"%Y-%m-%d" *}</em>
                            </td>
                            <td class="nums"><em>{*$item->views*}</em>/{*$item->replies*}</td>
                            <td class="lastpost">
							{*if $item->lastusername*}
                                <em class="time">{* $item->lasttime|date_format:"%Y-%m-%d %H:%M" *}</em>
                                <a href="#">{*$item->lastusername*}</a>
							{*else*}-{*/if*}
                            </td>
                        </tr>
                    </tbody>
					{*/foreach*}
                </table>
            </div>
        </div>

        <div class="list">
            <h1 class="block_sub">管理选项</h1>
            <div class="admin_table mainbox">
                <table>
                    <tbody>
					    {*if $act eq 'delete'*}
                        <tr>
                            <th>删除方式：</th>
                            <td colspan="2">
                                <input class="radio" type="radio" name="del" value="0" checked/>
                                回收站
                                <input type="radio" name="del" value="1"/>
                                物理删除
                            </td>
                        </tr>
                        <tr>
                            <th>积分扣除：</th>
                            <td colspan="2">
                                <input type="radio" name="jifen" value="1" checked/>
                                是
                                <input type="radio" name="jifen" value="0"/>
                                否
                            </td>
                        </tr>
                        {*elseif $act eq 'top'*}
                        <tr>
                            <th>置顶类型：</th>
                            <td colspan="2">
                                <input type="radio" name="top" value="0"/>
                                <span class="red">取消置顶</span>
                                <input type="radio" name="top" value="1" checked/>
                                板块置顶
                                <input type="radio" name="top" value="2"/>
                                论坛全局置顶
                            </td>
                        </tr>
                        {*elseif $act eq 'move'*}
                        <tr>
                            <th>选择目标板块：</th>
                            <td colspan="2">
								<select name="forumid" style="margin:-2px; width:150px;" >
									<option value="" selected>选择板块...</option>
									{* foreach from=$aAllForum  key = key item=item *}
									<option value="{*if $item->type eq 'forum'*}{*$item->fid*}{*/if*}" {*if $item->fid eq $fid  *}selected{*/if*}>{*if $item->formatpre*}{*$item->formatpre*}|- {*else*}&gt;&gt; {*/if*}{*$item->name*}</option>
									{*/foreach*}
								</select>
                            </td>
                        </tr>

                        {*elseif $act eq 'up'*}
                        <tr>
                            <th>提前时间：</th>
                            <td colspan="2">
								<input type="text" name="uphour" size="10"> (小时)  
								<input type="checkbox" name="deleteup" value="1"/> 取消提前
                            </td>
                        </tr>

                        {*elseif $act eq 'light'*}
                        <tr>
                            <th>字体样式：</th>
                            <td colspan=2>
                                <input type="checkbox" name="light_b" value="1"/>
                                <span class="bold">粗体</span>
                                <input type="checkbox" name="light_i" value="1"/>
                                <span class="italic">斜体</span>
                                <input type="checkbox" name="light_u" value="1"/>
                                <span class="underline">下划线</span>
                            </td>
                        </tr>
                        <tr>
                            <th>字体颜色：</th>
                            <td colspan=2>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#000" />
                                    <span style="background:#000;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#FF0000" />
                                    <span style="background:#FF0000;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#FFA500" />
                                    <span style="background:#FFA500;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#008000" />
                                    <span style="background:#008000;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#00FFFF" />
                                    <span style="background:#00FFFF;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#0000FF" />
                                    <span style="background:#0000FF;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#800080" />
                                    <span style="background:#800080;"></span>
                                </label>
                                <label class="highlight">
                                    <input type="radio" name="light_color" value="#808080" />
                                    <span style="background:#808080;"></span>
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <th>有效时间：</th>
                            <td colspan="2">
								<input type="text" name="light_time" size="10"> (天)
                            </td>
                        </tr>
                        {*elseif $act eq 'pith'*}
                        <tr>
                            <th>精华选项：</th>
                            <td colspan="2">
                                <input type="radio" name="pith" value="0"/>
                                <span class="red">取消精华</span>
                                <input type="radio" name="pith" value="1" checked/>
                                精华I
                                <input type="radio" name="pith" value="2"/>
                                精华II
                            </td>
                        </tr>
                        {*elseif $act eq 'lock'*}
                        <tr>
                            <th>锁定选项：</th>
                            <td colspan="2">
                                <input type="radio" name="lock" value="N"/>
                                <span class="red">取消锁定</span>
                                <input type="radio" name="lock" value="Y" checked/>
                                锁定
                            </td>
                        </tr>
						{*/if*}
                        <tr>
                            <th>消息通知：</th>
                            <td colspan="2">
                                <input type="radio" name="msg" value="1"/>
                                是
                                <input type="radio" name="msg" value="0" checked/>
                                否
                            </td>
                        </tr>
                        <tr>
                            <th>操作理由：</th>
                            <td width="200px">
<textarea rows="5" style="height:100px; width:200px; overflow-y:auto;" name="info" id="info"></textarea>
</td><td align="left">
<select name="selects" onChange="chk()" MULTIPLE SIZE="6">
	<option value="">自定义</option>
	<option value="">------</option>
	{* foreach from=$BBSDeleteReason  key = key item=item *}
	<option value="{*$item*}">{*$item*}</option>
	{*/foreach*}
	<option value="">------</option>
	{* foreach from=$BBSPithReason  key = key item=item *}
	<option value="{*$item*}">{*$item*}</option>
	{*/foreach*}
</select>
<script>
function chk()
{
	imgs=document.form1.selects.value;
	if(imgs)
		document.form1.info.value=imgs;
	else
		document.form1.info.value="";
}
</script>
                            </td>
                        </tr>
                    </tbody>
                    <tbody>
                        <tr class="sky-blue2">
                            <th></th>
                            <td colspan="2">
                                <input class="submit" type="button" value="确认提交" onclick="doActions('form1','admin.php?action=do&act={*$act*}','1')"/>
                                <a href="list.php?fid={*$fid*}&act=moder">返回前页</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
		<input type="hidden" name="fid" value="{*$fid*}">
</form>

        <!-- 版块分类 -->
        <div class="legend list">
            <label><img src="/images/thread/topicnew.gif" />新主题</label>
            <label><img src="/images/thread/topichot.gif" />热门主题</label>
            <label><img src="/images/thread/topiclock.gif" />锁定主题</label>
            <label><img src="/images/thread/vote.gif" />投票主题</label>
            <label><img src="/images/thread/trade.gif" />交易主题</label>
        </div>
    </div>
{{end}}
